<?php $terms = get_terms("danh-muc","hide_empty=0&orderby=custom_sort&order=asc"); ?>
<div id="home-category">
    <ul>
    <?php foreach($terms as $term){ $show = get_tax_meta($term,"show-menu"); 
    if($show=="on"){ 
	//print_r( $term); exit;?>
        <li><a href="<?php echo get_term_link($term,"danh-muc")?>"><?php echo $term->name;?></a></li>
        <?php } 
    } ?>
	
	
	<?php $terms = get_terms("tinh-trang","hide_empty=0&orderby=custom_sort&order=asc"); 
	?>
	<?php foreach($terms as $term){ //$show = get_tax_meta($term,"show-menu"); 
    //if($show=="on"){ 
	//echo "count === ".count($terms);?>
        <li><a href="<?php echo get_term_link($term,"tinh-trang")?>"><?php echo $term->name;?></a></li>
        <?php //} 
    } ?>
	
        <li><a href="<?php //echo get_permalink(get_page_id("san-pham-moi"))?>">Hàng mới vềAAAbb</a></li>
        <li><a href="<?php //echo get_permalink(get_page_id("hang-giam-gia"))?>">Hàng giảm giáAAAbb</a></li>
    </ul>
</div>

